export default {
	// 用户token
	token:false,
	// token:"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxNjc4MDYwMjkzMjcyMjAzMjY1IiwiaWF0IjoxNjg5MjM4OTYwLCJleHAiOjE2ODk4NDM3NjB9.lfL5z44CpBZWukSd-41-6q7AKvuqdEeU4AvA_aw7ynw",
	// 用户信息
	userinfo:false,
	// 权限验证跳转
	navigate(options,type="navigateTo"){
		if(!this.token){
			return uni.navigateTo({
				url:"/pages/login/login"
			})
		}
		switch(type){
			case "navigateTo":
				uni.navigateTo(options)
				break;
			case "switchTab":
				uni.switchTab(options)
				break;
			case "redirectTo":
				uni.redirectTo(options)
				break;
			case "reLaunch":
				uni.reLaunch(options)
				break;
		}
	}
}